Quote and escape the binary path.
authorTim Starling <tstarling@users.mediawiki.org>
Sat, 31 Mar 2007 16:52:34 +0000 (16:52 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sat, 31 Mar 2007 16:52:34 +0000 (16:52 +0000)
includes/DjVuImage.php

index 7872cf0..8033c32 100644 (file)
@@ -220,7 +220,7 @@ class DjVuImage {
        function retrieveMetaData() {
                global $wgDjvuToXML;
                if ( isset( $wgDjvuToXML ) ) {
-                       $cmd = $wgDjvuToXML . ' --without-anno --without-text ' .
+                       $cmd = wfEscapeShellArg( $wgDjvuToXML ) . ' --without-anno --without-text ' .
                                wfEscapeShellArg( $this->mFilename );
                        $xml = wfShellExec( $cmd );
                } else {